<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test</title>
    <link rel="stylesheet" href="element.css">
</head>
<body>
<div id="tests">
    <div class="block">
        <span class="demonstration">默认不区分颜色</span>
        <el-rate v-model="value1"></el-rate>
    </div>
    <div class="block">
        <span class="demonstration">区分颜色</span>
        <el-rate
                v-model="value2"
                :colors="['#99A9BF', '#F7BA2A', '#FF9900']">
        </el-rate>
    </div>
</div>

</body>
<!-- import Vue before Element -->
<script src="./vue.js"></script>
<script src="./jquery.min.js"></script>
<script src="./element.js"></script>
<script>
    new Vue({
        el:"#tests",
        data () {
            return {
                value1: 1,
                value2: 2
            }
        },
        methods: {

        }
    })
</script>
</html>